# Create your views here.
from django.http import HttpResponse
from django.http import Http404

from nekonekotrace.logic.dbUpdate import *
#json generator import




def postTestView(request):    
    return HttpResponse(str(request.POST['context']) + str(request.POST['context2']) + '\r\n')

def postCatImpressionView(request):
    dpNewImpression(int(request.POST['userid']), int(request.POST['catid']), request.POST['content'])
    return HttpResponse("New Cat Impression Updated")

def postLocationInfoView(request):
    dpNewLocationInfo(int(request.POST['location']), int(request.POST['catid']))
    return HttpResponse("New Location Info Updated")

def postTreatView(request):
    dpNewTreat(int(request.POST['user']), int(request.POST['catid']))
    return HttpResponse("New Treat Updated")